<script type="text/javascript">
    setTimeout(function(){
        jQuery(".chzn-select").chosen();
    },1);
</script>
<div class="breadcrumbwidget">
	<ul class="skins">
        <li><a href="default" class="skin-color default"></a></li>
        <li><a href="orange" class="skin-color orange"></a></li>
        <li>&nbsp;</li>
        <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
        <li class="wide"><a href="" class="skin-layout wide"></a></li>
    </ul><!--skins-->
	<ul class="breadcrumb">
        <li><a href="<?php echo $baseurl?>">Trang chủ</a> <span class="divider">/</span></li>
        <li style="width: 93px;" class="active">Sửa review</li>
    </ul>
</div><!--breadcrumbwidget-->
<div class="pagetitle">
	<h1>Sửa review</h1> <span></span>
</div>
<div class="maincontent">
    <?php if(validation_errors()):?>
        <div class="alert alert-error" style="margin: 10px 10px 10px 40px;">
          <button data-dismiss="alert" class="close" type="button">×</button>
          <?php echo validation_errors(); ?>
        </div>
    <?php endif;?>
    <div class="contentinner content-dashboard">    
    <?php $attr = array('class' => 'stdform'); echo form_open('', $attr)?>
    
    <br>
	<p id="content">
	 <?php
	//echo '<pre>'.print_r($getReviewInfo);	
	 
	?>
	<p>
    	<label style="margin-left: -11px;">Chọn nhà hàng</label>
        <span class="field">
            <select name="restaurant_id" class="uniformselect">
                <?php echo $optionRestaurant;?>
            </select>
        </span>
    </p>
    <p>
    	<label>Tên người dùng</label>
        <span class="field" style="position: relative;top: 6px;">
            <?php echo $nameCustomer;?>
        </span>
    </p>
	
	<p>
    	<label>Chọn số sao</label>
        <span class="field">
            <select name="star" class="uniformselect star">
                <?php echo $optionStar;?>
            </select>
			<?php for ( $i = 0; $i < $getReviewInfo->star; $i ++){
			echo "<span class='icon-star'></span>";
		 }?> 
        </span>
    </p>

	</p>
	
	<p>
		<label>Nội dung bình luận</label>
		<span class="field"><textarea id="autoResizeTA" name="content" cols="80" rows="5" class="span5" style="resize: vertical; height: 100px; margin-top: 0px; margin-bottom: 0px;"><?php echo $getReviewInfo->content ?></textarea></span> 
	</p>
	
	<p>
		<label>Phê duyệt bình luận</label>
		<span class="formwrapper">
			<span class=""><input type="checkbox" name="improved" style="opacity: 1;" <?php if( $getReviewInfo->improved == 1 ){ echo 'checked="" value="1"'; }?>"></span>
		</span>
	</p>
	
    <p>
        <label></label>
        <button class="btn btn-rounded" type="submit"> <i class="iconfa-ok"></i> &nbsp; Lưu lại</button>
        <button class="btn btn-rounded" type="button" onclick="window.location='<?php echo $baseurl.'manage/review/index'?>'"> <i class="icon-arrow-right"></i> &nbsp; Hủy bỏ</button>
    </p>
    </form>
    </div>
</div>